package com.myself.module.authority.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 系统-用户-信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "s_user_info")
public class UserInfo {
    private static final long serialVersionUID = 1L;
    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 加密后的密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 微信用户唯一标识
     */
    @TableField(value = "wechat")
    private String wechat;

    /**
     * 启用
     */
    @TableField(value = "`enable`")
    private Boolean enable;
}